package chapter6.No6_1_立即加载_饿汉模式.demo10;

/**
 * Created by Administrator on 2016/11/25.
 */
public class MyObject {
    private MyObject() {}
    private static MyObject object;
    static{
        object = new MyObject();
    }
    public static MyObject getInstance() {
        return object;
    }
}
